package cn.sherer.beans.weixin;

import java.util.List;
import java.util.ArrayList;
import java.io.Serializable;

/**
 * 微信订阅消息模板
 */
public class WxSubscribeTemplate implements Serializable {
    private String priTmplId;
    private String title;
    private String content;
    private String example;
    private int type;
    private List<WxSubscribeTemplateKeywordEnumValue> keywordEnumValueList;

    public WxSubscribeTemplate() {
    }

    public WxSubscribeTemplate(String priTmplId, String title, String content, String example, int type, List<WxSubscribeTemplateKeywordEnumValue> keywordEnumValueList) {
        this.priTmplId = priTmplId;
        this.title = title;
        this.content = content;
        this.example = example;
        this.type = type;
        this.keywordEnumValueList = keywordEnumValueList;
    }

    public String getPriTmplId() {
        return priTmplId;
    }

    public void setPriTmplId(String priTmplId) {
        this.priTmplId = priTmplId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getExample() {
        return example;
    }

    public void setExample(String example) {
        this.example = example;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<WxSubscribeTemplateKeywordEnumValue> getKeywordEnumValueList() {
        return keywordEnumValueList == null ? new ArrayList<>() : keywordEnumValueList;
    }

    public void setKeywordEnumValueList(List<WxSubscribeTemplateKeywordEnumValue> keywordEnumValueList) {
        this.keywordEnumValueList = keywordEnumValueList;
    }
}
